//
//  APNS.h
//  Cycling
//
//  Created by chijianguo on 2023/4/23.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UserNotifications/UserNotifications.h>
#import <CoreLocation/CoreLocation.h>
#import<MobileCoreServices/MobileCoreServices.h>

NS_ASSUME_NONNULL_BEGIN

@interface APNS : NSObject
+ (APNS*) shareInstance;

+ (void)regLocalAPNs;
+ (void)regRemoteAPNs:(id) delegate;

+ (void) locationPushNoti:(CLRegion *) region body:(NSString *)body;
+ (void)pushNotifacation:(NSString *)info;
+ (void)pushNotifacation:(NSString *_Nullable)title  subtitle:(NSString *_Nullable)subtitle  body:(NSString *_Nullable)body userInfo:(NSDictionary *_Nullable)userInfo afterDelay:(NSTimeInterval)afterDelay;

+ (void)deleteLocalPush;

@end

NS_ASSUME_NONNULL_END
